package ru.linnenson.darshana.infrastructure.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import javax.validation.constraints.NotNull;

@Data
@ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
public class ApplicationProperties {

  @NotNull
  private OcrProperties ocrProperties;

  @Data
  public static class OcrProperties {

    @NotNull
    private String language;

    @NotNull
    private Integer pageSegMode;

    @NotNull
    private Integer engineMode;
  }
}
